#include "GlobalBase.h"

void bitmapPrintf (int sizeflag, const char *fmt, ...)
{
	static char buf[256];
	va_list args;

	va_start(args, fmt);
#if defined(WIN32) && !defined(__CYGWIN__)
	(void) _vsnprintf (buf, sizeof(buf), fmt, args);
#else
	(void) vsnprintf (buf, sizeof(buf), fmt, args);
#endif
	va_end(args);
	if(sizeflag == 0)
		glutBitmapString ( GLUT_BITMAP_HELVETICA_12, (unsigned char*)buf ) ;
	if(sizeflag == 1)
		glutBitmapString ( GLUT_BITMAP_HELVETICA_18, (unsigned char*)buf ) ;
}